package com.nlelpct.manage.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 小马
 * @since 2023-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dictionary")
public class Dictionary extends Model<Dictionary> {

    private static final long serialVersionUID = 1L;

    /**
     * 字典主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * key
     */
    private String dicKey;

    /**
     * -1 代表根节点  
     */
    private String parentId;

    /**
     * value 结果
     */
    private String dicValue;

    /**
     * 备注
     */
    private String bz;

    /**
     * 排序
     */
    private Integer dicOrder;

    /**
     * 状态(0:禁用 1.正常 2.删除)
     */
    private Integer zt;

    /**
     * 所属系统
     */
    private String systemId;

    /**
     * 关联主键：company_id
     */
    private String companyId;

    /**
     * 是否有子集（0.没有  1.有）
     */
    private Boolean isParent;


    public static final String ID = "id";

    public static final String DIC_KEY = "dic_key";

    public static final String PARENT_ID = "parent_id";

    public static final String DIC_VALUE = "dic_value";

    public static final String BZ = "bz";

    public static final String DIC_ORDER = "dic_order";

    public static final String ZT = "zt";

    public static final String SYSTEM_ID = "system_id";

    public static final String COMPANY_ID = "company_id";

    public static final String IS_PARENT = "is_parent";


}
